import { useUsers } from "hooks/useUsers";
import React from "react";
import { IdSelect } from "./id-select";

/*
 * @Author       : 魏威 <1209562577@qq.com>
 * @Date         : 2022-04-01 17:35 周5
 * @Description  :
 */
export const UserSelect = (props: React.ComponentProps<typeof IdSelect>) => {
  const { data: users } = useUsers();

  return (
    <IdSelect defaultOptionName={"负责人"} options={users || []} {...props} />
  );
};
